#@layout()
<script>
    $("#account-add").validate({
        rules:{
        
        
                "account.username":{
                    required:true
                },
        
        
                "account.userpass":{
                    required:true
                },
        
        
                "account.status":{
                    required:true
                },
        
        
                "account.mobile":{
                    required:true
                },
        
        
                "account.create_time":{
                    required:true
                },
        
        
                "account.email":{
                    required:true
                },
        
        
                "account.role":{
                    required:true
                }
        
        },
        messages:{

        
        
                "blog.username":{
                required:"请输入用户名..."
                },
        
        
                "blog.userpass":{
                required:"请输入用户密码..."
                },
        
        
                "blog.status":{
                required:"请输入账户状态..."
                },
        
        
                "blog.mobile":{
                required:"请输入联系方式..."
                },
        
        
                "blog.create_time":{
                required:"请输入创建时间..."
                },
        
        
                "blog.email":{
                required:"请输入电子邮箱..."
                },
        
        
                "blog.role":{
                required:"请输入用户角色..."
                }
        
        },
        onkeyup:false,
        focusCleanup:true,
        success:"valid",
        submitHandler:function(form){
        var config = {
        "url":"/admin/account/doAdd",
        data:$("#account-add").serialize(),
        "method":"POST"
        };
        var backendTool = new BackendTool(config);
        backendTool.ajaxRequest();
        }
    });
</script>
#define main()
     <form class="form form-horizontal" id="account-add">
        #include("account-form.html")
     </form>
#end